﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TjZheng.Power.DataEntity;

namespace TjZheng.Power.Business
{
    public partial class BizUserRoleInfo
    {
        public List<UserRoleInfoUser> ConvertToUserRoleInfoUserList(DataTable objDataTable)
        {
            return objDataTable.Select().Select(c => ConvertToUserRoleInfoUser(c)).ToList();
        }

        public UserRoleInfoUser ConvertToUserRoleInfoUser(DataRow objDataRow)
        {
            UserRoleInfoUser model = new UserRoleInfoUser();
            model.Id = (long)objDataRow["Id"];
            model.GroupId = (long)objDataRow["GroupId"];
            model.UserId = (long)objDataRow["UserId"];
            model.UserName = (string)objDataRow["UserName"];
            model.RealName = (string)objDataRow["RealName"];
            return model;
        }
    }
}
